package cn.janyd.common.core.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author janyd
 * @since 2020/8/14 20:43
 */
@Data
@Accessors(chain = true)
public class PageResult<T> implements Serializable {

    @ApiModelProperty(value = "当前页数", required = true)
    private Long current;

    @ApiModelProperty(value = "总数", required = true)
    private Long total;

    @ApiModelProperty(value = "数据", required = true)
    private List<T> records;
}
